POV-Ray : Newsgroups : povray.advanced-users : Making plants : Re: Making plants Server Time
29 Jul 2024 16:30:22 EDT (-0400)
  Re: Making plants  
From: Rohan Bernett
Date: 25 Aug 2002 22:50:02
Message: <web.3d69968af01f31b4d02c7b870@news.povray.org>
Ken wrote:
>
>Rohan Bernett wrote:
>>
>> Okay, here's another question about not using addons.
>>
>> How do I make relatively realistic looking vegetation WITHOUT using third
>> party addons?
>
>Most people use recursive functions.
>
>Ken Tyler
>

I'm no good at writing recursive functions. :-( I've used them a couple of
times in c++ in my uni assignments, but I always find them a pain in the
arse to write.

Okay, enough grumbling, can anyone give me some advice (or better still a
code exaple) on how to make a tree using recursive functions. My best
vaugly recursive attempt at making a tree involved making several objects
of different levels of the tree and adding them at different levels. i.e.
one level with leaves, then one using branches with 3 leaves on them, then
one using 3 branches from the one before and so on. It does look like a
tree, but not very realistic.

Rohan _e_ii


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.